from pattern.circuit import Control

class entry(Control):

    def incoming(self, event):
        cmd = event.data[0]
        elements = cmd.split()
        if elements:
            cmdname = elements[0].lower()
            bridge = self.acquireInterface(event, cmdname)
            if bridge is not None:
                bridge.push(elements[1:])
